import request from '@/utils/request'

export default {
  getList(data) {
    return request({
      url: `/api/user/getList`,
      method: 'post',
      data
    })
  },
  getPage(page, pageSize, data) {
    return request({
      url: `/api/user/getPage/${page}/${pageSize}`,
      method: 'post',
      data
    })
  },
  add(data) {
    return request({
      url: `/api/user/add`,
      method: 'post',
      data
    })
  },
  get(id) {
    return request({
      url: `/api/user/get/${id}`,
      method: 'post'
    })
  },
  update(data) {
    return request({
      url: `/api/user/update`,
      method: 'post',
      data
    })
  },
  status(id, status) {
    return request({
      url: `/api/user/status/${id}/${status}`,
      method: 'post'
    })
  },
  delete(id) {
    return request({
      url: `/api/user/delete/${id}`,
      method: 'post'
    })
  }
}
